Fluent Assertions Documentation
FluentAssertions.Collections Namespace / StringCollectionAssertions<TCollection,TAssertions> Class / Equal Method / Equal(String[]) Method
An IEnumerable with the expected elements.
In This Topic
    Equal(String[]) Method
    In This Topic
    Expects the current collection to contain all the same elements in the same order as the collection identified by expected. Elements are compared using their System.Object.Equals(System.Object). To ignore the element order, use BeEquivalentTo(String[]) instead.
    Syntax
    public new AndConstraint<TAssertions> Equal( 
       params string[] expected
    )

    Parameters

    expected
    An IEnumerable with the expected elements.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also